package com.lyl.security.module.system.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Set;

/**
 * @author Mr.Luo
 * @date 2022-09-14 16:41
 * @desc 权限
 */
@Mapper
@Repository
public interface PermissionsDao {

    /**
     * 根据用户id获取权限
     * @param userId 用户id
     * @return 权限
     */
    Set<String> getMenuPermsByUserId(@Param("userId") Long userId);
}
